<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8"> 
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
        <meta name="apple-mobile-web-app-capable" content="yes" />

        <!-- Base Css Files -->
        <link href="/ouju/Public/statics/coco-chat/assets/libs/jqueryui/ui-lightness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" />
        <link href="/ouju/Public/statics/coco-chat/assets/libs/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
        <link href="/ouju/Public/statics/coco-chat/assets/libs/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
        <link href="/ouju/Public/statics/coco-chat/assets/libs/fontello/css/fontello.css" rel="stylesheet" />
        <link href="/ouju/Public/statics/coco-chat/assets/libs/animate-css/animate.min.css" rel="stylesheet" />
        <link href="/ouju/Public/statics/coco-chat/assets/libs/nifty-modal/css/component.css" rel="stylesheet" />
        <link href="/ouju/Public/statics/coco-chat/assets/libs/magnific-popup/magnific-popup.css" rel="stylesheet" /> 
        <link href="/ouju/Public/statics/coco-chat/assets/css/style.css" rel="stylesheet" type="text/css" />
        <link href="/ouju/Public/statics/coco-chat/assets/css/style-responsive.css" rel="stylesheet" />
        <link href="/ouju/Public/statics/coco-chat/assets/libs/pace/pace.css" rel="stylesheet" />
        <link href="/ouju/Public/statics/coco-chat/assets/libs/jquery-notifyjs/styles/metro/notify-metro.css" rel="stylesheet" type="text/css" />
        
        <!-- Extra CSS Files -->
      	<link href="/ouju/Public/statics/coco-chat/assets/libs/bootstrap-select/bootstrap-select.min.css" rel="stylesheet" type="text/css" />
        
        <!-- Custom Css Files -->
        <link href="/ouju/tpl/Home/Public/css/style.css"  rel="stylesheet" />
    </head>
    <body>
    
    <div>
        <div class="sub-header-title">
            <h2>商品订购</h2>
        </div>
        <form method="post" class="form-horizontal" action="<?php echo U('Mall/goods');?>">
       		<div class="form-group">
	            <div class="col-sm-2">
                   	<select class="form-control selectpicker" name="goods_category_id">
                 		<option value="0">全部分类</option>
                      	<?php if(is_array($categorys)): $i = 0; $__LIST__ = $categorys;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["id"]); ?>" <?php if($goods_category_id == $vo['id']): ?>selected<?php endif; ?> ><?php echo ($vo["title"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
                  	</select>
               	</div>
	            <div class="col-sm-2">
                   	<input class="form-control" id="filter" placeholder="根据商品名称搜索" name="keyword" value="<?php echo ($keyword); ?>" type="text"/>
               	</div>
	            
	            <div class="col-sm-6">
                   	<button class="btn btn-success" type="submit">查询</button>
               	</div>
	        </div>
        </form>
    </div>
    
    <div class="widget">
        <div class="widget-content">
            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><div class="col-xs-6 col-sm-4 col-md-3 col-lg-2 pic">
            		<a href="<?php echo U('Mall/detail',array('id'=>$vo['id']));?>">
                      	<img style="width: 100%;" src="<?php echo ($vo["big_pic_url"]); ?>">
                    </a>
                    <div>
	                    <p class="goods_title">
	                    	<a href="<?php echo U('Mall/detail',array('id'=>$vo['id']));?>"><b><?php echo ($vo["title"]); ?></b></a>
	                    </p>
	                    <p>
	                    	<i>商品原价:<s><?php echo ($currency_symbol); echo ($vo["old_price"]); ?></s></i>
	                    	<span class="pull-right">
	                    		<?php if($vo['new_price'] > 0): ?>商品现价:<?php echo ($currency_symbol); echo ($vo["new_price"]); ?><br/><?php endif; ?>
	                    	</span>
	                    </p>
	             	</div>
	        	</div><?php endforeach; endif; else: echo "" ;endif; ?>
	      	<div class="clearfix"></div>
            <?php echo ($page); ?>
        </div> 
    </div> 

	<!-- Base Js Files -->
	<script src="/ouju/Public/statics/coco-chat/assets/libs/jquery/jquery-1.11.1.min.js"></script>
	<script src="/ouju/Public/statics/coco-chat/assets/libs/bootstrap/js/bootstrap.min.js"></script>
	<script src="/ouju/Public/statics/coco-chat/assets/libs/jqueryui/jquery-ui-1.10.4.custom.min.js"></script>
	<script src="/ouju/Public/statics/coco-chat/assets/libs/jquery-ui-touch/jquery.ui.touch-punch.min.js"></script>
 	<script src="/ouju/Public/statics/coco-chat/assets/libs/jquery-detectmobile/detect.js"></script>
	<script src="/ouju/Public/statics/coco-chat/assets/libs/fastclick/fastclick.js"></script>
	<script src="/ouju/Public/statics/coco-chat/assets/libs/jquery-slimscroll/jquery.slimscroll.js"></script>
	<script src="/ouju/Public/statics/coco-chat/assets/libs/nifty-modal/js/classie.js"></script>
	<script src="/ouju/Public/statics/coco-chat/assets/libs/nifty-modal/js/modalEffects.js"></script>
	<script src="/ouju/Public/statics/coco-chat/assets/libs/jquery-notifyjs/notify.min.js"></script>
    <script src="/ouju/Public/statics/coco-chat/assets/libs/jquery-notifyjs/styles/metro/notify-metro.js"></script>
	<script src="/ouju/Public/statics/coco-chat/assets/libs/pace/pace.min.js"></script>
	
   	<!-- Extra Js Files -->
	<script src="/ouju/Public/statics/coco-chat/assets/libs/bootstrap-select/bootstrap-select.min.js"></script>
    <script src="/ouju/Public/statics/coco-chat/assets/libs/bootstrap-select2/select2.min.js"></script>
    
    <!-- Custom Js Files -->
	<script src="/ouju/tpl/Home/Public/js/common.js"></script>

	<script>
	  //SELECT
	  $('.selectpicker').selectpicker();  
	</script>
    </body>
</html>